// pages/epercen1/percen1.js
var app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    bghei:app.globalData.winheight,
    boxwid:app.globalData.winwidth/750*650,
    boxhei:app.globalData.winwidth/750*84,
    imghei:app.globalData.winwidth/2.5
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    wx.setNavigationBarTitle({
        title: '',
      })

  },
  signin(){
    var openid = wx.getStorageSync('openid')
    wx.request({
      url: 'https://www.juquduo.com/juquduo/login/is_wx_login',
      data:{
        openid:openid,
      },
      success(res){
        console.log('一键登录')
        console.log(res)
        wx.redirectTo({
          url: './percenter'
        })
      }
    })
  },
  
  zhuye(){
    wx.redirectTo({
      url: '../ayeshou/yeshou',
    })
  },
})